package _01wraper;

public class classchange {
    public static void main(String[] args) {
        //int 和integer 装箱和拆箱
        int n1=100;
        Integer integer = new Integer(n1);
        Integer integer2 = integer.valueOf(n1);


        int i = integer.intValue();
        System.out.println(i);


        //新版方法
        int n2= 200;
        Integer integer3 = n2;//底层使用的是new 
        int n3 = integer3;
        System.out.println(n3 );
        

        Object o1=true?new Integer(1):new Double(2.0);
        System.out.println(o1);//三元运算符是一个整体
        


    }
}
